package io;

import java.io.*;

public class ZuoYe12 {
	public static void main(String[] args) throws IOException {


		FileInputStream fs = null;
		

		FileOutputStream fo = null;
		

		try {
			fs = new FileInputStream("c://1.jpg");
			fo = new FileOutputStream("d://1.jpg");
			
			byte[] b = new byte[1024];
			int n;

			while ((n = fs.read(b))!=-1) {
				

				fo.write(b);
			}
		} catch (FileNotFoundException e) {
			

			e.printStackTrace();
		}finally{
			fs.close();
			fo.close();
		}
		
	}

}